<?
print_r($cliente);
?>


<div id="content">
  <h1 class="pagetitle">
    <? if($_REQUEST[mod]=="new") echo "Inserisci"; else echo "Modifica";?>
    Cliente</h1>
  <a href="<? if($_REQUEST[mod]=="new") echo "/admin/"; else echo "/admin/clienti.php?id_cliente=$cliente[id]" ?>" id="rss-posts">Indietro</a>
  <div class="post">
    <h2 class="title">
      <? if($_REQUEST[mod]!="new") { echo $cliente[nome]." ".$cliente[cognome];}else{ echo "Nuovo cliente"; }?>
    </h2>
    <p class="byline">
      <? 
	if($_REQUEST[mod]!="new") 
	{
	?>
    <small>
    <p> </p>
    </small>
    <?
	}
	?>
    </p>
    <form id="form" action="" method="GET">
      <div class="meta"></div>
      <div class="entry_sx"> Nome </div>
      <div class="entry_dx">
        <input name="nome" type="text" value="<? echo $cliente[nome];?>" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Cognome </div>
      <div class="entry_dx">
        <input name="cognome" type="text" value="<? echo $cliente[cognome];?>" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Username </div>
      <div class="entry_dx">
        <input name="username" type="text" value="<? echo $cliente[username];?>" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Password </div>
      <div class="entry_dx">
        <input name="password" type="password" value="" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Email </div>
      <div class="entry_dx">
        <input name="email" type="text" value="<? echo $cliente[email];?>" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Indirizzo </div>
      <div class="entry_dx">
        <input name="indirizzo" type="text" value="<? echo $cliente[indirizzo];?>" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Citt&agrave;</div>
      <div class="entry_dx">
        <input name="citta" type="text" value="<? echo $cliente[citta];?>" size="50" />
      </div>
      <div class="meta"></div>
      
      <div class="entry_sx"> Cap </div>
      <div class="entry_dx">
        <input name="cap" type="text" value="<? echo $cliente[cap];?>" size="50" />
      </div>
      <div class="meta"></div>
      
       <div class="entry_sx"> Provincia </div>
      <div class="entry_dx">
        <input name="provincia" type="text" value="<? echo $cliente[provincia];?>" size="50" />
      </div>
      <div class="meta"></div>
      
       <div class="entry_sx"> Nazione </div>
      <div class="entry_dx">
        <input name="nazione" type="text" value="<? echo $cliente[nazione];?>" size="50" />
      </div>
      <div class="meta"></div>
      
       <div class="entry_sx"> Telefono </div>
      <div class="entry_dx">
        <input name="telefono" type="text" value="<? echo $cliente[telefono];?>" size="50" />
      </div>
      <div class="meta"></div>
      
       <div class="entry_sx"> CF/P.IVA </div>
      <div class="entry_dx">
        <input name="cf" type="text" value="<? echo $cliente[cf];?>" size="50" />
      </div>
      <div class="meta"></div>
      
     
      
      <div class="meta">
        <input name="mod" value="save" type="hidden" />
        <input name="id_cliente" value="<? echo $cliente[id]; ?>" type="hidden" />
        <input type="reset" name="Annulla" value="Annulla" class="pulsanti"/>
        <input type="submit" name="Salva" value="Salva" class="pulsanti"/>
      </div>
    </form>
  </div>
</div>
